<template>
  <view>
    <LowCodePage :pageJson="pageData" :navBarHeight="0"/>
  </view>
</template>

<script>
import LowCodePage from "@/components/lc/lc-page.vue";
import { JSON as yqdTextJSON } from "@/components/basic/yqd-text/index.js";
import { JSON as yqdButtonJSON } from "@/components/basic/yqd-button/index.js";
import { JSON as yqdImageJSON } from "@/components/basic/yqd-image/index.js";
import { JSON as yqdSwiperJSON } from "@/components/basic/yqd-swiper/index.js";
import { JSON as yqdNoticeBarJSON } from "@/components/basic/yqd-notice-bar/index.js";
import { JSON as yqdSubmitButtonJSON } from "@/components/only/yqd-submit-button/index.js";
import { JSON as yqdTextInputJSON } from "@/components/cus-form/yqd-text-input/index.js";
import { JSON as yqdCusRadioJSON } from "@/components/cus-form/yqd-cus-radio/index.js";
import { JSON as yqdCusCheckboxJSON } from "@/components/cus-form/yqd-cus-checkbox/index.js";
import { JSON as yqdCusDatetimePickerJSON } from "@/components/cus-form/yqd-cus-datetime-picker/index.js";
import { JSON as yqdCusDurationInputJSON } from "@/components/cus-form/yqd-cus-duration-input/index.js";
import { JSON as yqdFormModuleJSON } from "@/components/other/yqd-form-module/index.js";
import { JSON as yqdModuleJSON } from "@/components/other/yqd-module/index.js";
import { JSON as yqdCusImgUploadJSON } from "@/components/cus-form/yqd-cus-img-upload/index.js";
import { JSON as yqdCusAreaPickerJSON } from "@/components/cus-form/yqd-cus-area-picker/index.js";
import { JSON as yqdCusTextareaJSON } from "@/components/cus-form/yqd-cus-textarea/index.js";
import { JSON as yqdGirdJSON } from "@/components/business/yqd-gird/index.js";
import { JSON as yqdAcitonJSON } from "@/components/business/yqd-aciton/index.js";
import { JSON as yqdNearbyStoresListJSON } from "@/components/business/yqd-nearby-stores-list/index.js";
// JSON import
export default {
  components: {
    LowCodePage,
  },
  data() {
    return {
      pageData: {
        attribute: {
          title: "低代码",
        },
        items: [],
        page_id: "page_0",
        status: 0,
        style: {
          width: "auto",
          height: "100vh",
          backgroundColor: "#888",
        },
        _id: "6315a9e18254833032acc12e",
      },
    };
  },
  onLoad() {
    // js start
    const JSONS = [yqdSwiperJSON,yqdGirdJSON, yqdAcitonJSON];
    // js end
    this.pageData.items.push(...JSONS);
    // this.pageData.items[0].attribute.moduleIds = ['1583722191994748928','1583722191994748928','','1583722191994748928','1583722191994748928','1583722191994748928']
    // console.log(this.pageData.items[0].attribute.moduleIds)
    // setTimeout(()=>{
    //   this.pageData.items[0].attribute.moduleIds = ['1583722191994748928','','','1583722191994748928']
    // },2000)
  },
  methods: {},
};
</script>

<style></style>
